
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/jspTemplate.jsp" %>
    <title>订单管理</title>
    <style type="text/css">
        table{
            table-layout:fixed;/* 只有定义了表格的布局算法为fixed，下面td的定义才能起作用。 */
        }
        td{
            width:100%;
            word-break:keep-all;/* 不换行 */
            white-space:nowrap;/* 不换行 */
            overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
            text-overflow:ellipsis;/* 当对象内文本溢出时显示省略标记(...) ；需与overflow:hidden;一起使用。*/
        }
    </style>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 订单 <span class="c-gray en">&gt;</span> 订单管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="text-c">
        <form action="/admin/order/getOrderList.html" method="post" id="searchForm">
            <input type="hidden" id="count" value="${pageInfo.total }" />
            <input type="hidden" id="page" name="page" value="${pageInfo.pageNum }" />
            <input type="hidden" id="pageSize" name="pageSize" value="${pageInfo.pageSize }" />
            <input type="text" name="orderId"  value="${bean.orderId }" placeholder=" 请输入你要查询的订单号" style="width:250px" class="input-text">
            <span>状态：</span>
            <span class="select-box inline">
                <select name="status" class="select">
                    <option value="" ${bean.status==""?"selected":"" }>--全部--</option>
                    <option value="2" ${bean.status=="2"?"selected":"" }>已支付</option>
                    <option value="1" ${bean.status=="1"?"selected":"" }>未支付</option>
                    <option value="1" ${bean.status=="8"?"selected":"" }>已退款</option>
                    <option value="1" ${bean.status=="6"?"selected":"" }>待处理</option>
                   <%-- <option value="3" ${bean.businessType=="3"?"selected":"" }>星品通</option>
                    <option value="5" ${bean.businessType=="5"?"selected":"" }>卡券</option>
                    <option value="6" ${bean.businessType=="6"?"selected":"" }>旅游</option>
                    <option value="7" ${bean.businessType=="7"?"selected":"" }>星艺优品</option>--%>
                </select>
            </span>
            <button name="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
        </form>
    </div>
   <%-- <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <a class="btn btn-primary radius" onclick="layerTools.layerShowFullScreen('新增产品名称','/admin/product/getProduct.html','')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 新增产品名称</a></span> &lt;%&ndash;<span class="r">共有数据：<strong>54</strong> 条</span> &ndash;%&gt;</div>--%>
    <div class="mt-20 portfolio-content">
        <table class="table table-border table-bordered table-bg table-hover table-sort">
            <thead>
            <tr class="text-c">
                <%--<th>产品类型</th>--%>
                <th width="25%">订单号</th>
                <th width="25%">价格</th>
                <th width="25%">收货信息</th>
                <th width="25%">售后备注</th>
                <th width="25%">订单时间</th>
                <th width="10%">状态</th>
                <th width="10%">操作</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${pageInfo.list}" var="item" varStatus="index">
                <tr class="text-c">
                        <%--<td>${item.productTypeId}</td>--%>
                    <td>
                            ${item.orderId }
                    </td>

                    <td title="<fmt:formatNumber type="number" value="${item.orderPrice/100 } " maxFractionDigits="2"/>">
                         <fmt:formatNumber type="number" value="${item.orderPrice/100 } " maxFractionDigits="2"/>
                    </td>
                            <td>
                                  <span>姓名：</span>  ${item.consigneeInfo.consigneeName }</br>
                                <span>电话：</span>  ${item.consigneeInfo.consigneePhone } </br>
                                <span>地址：</span>    ${item.consigneeInfo.consigneeAddress }</br>


                        </td>
                            <td>
                                    ${item.refundReason }
                            </td>
                            <td>
                                <fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd HH:mm"/>
                            </td>
                    <td class="td-status">
                        <c:if test="${item.status==-2}">已删除</c:if>
                        <c:if test="${item.status==-1}">已过期</c:if>
                        <c:if test="${item.status==0}">已取消</c:if>
                        <c:if test="${item.status==1}">未支付</c:if>
                        <c:if test="${item.status==2}">已支付</c:if>
                        <c:if test="${item.status==6}">申请退款</c:if>
                        <c:if test="${item.status==8}">已退款</c:if>
                        <c:if test="${item.status==7}">取消退款</c:if>
                        <c:if test="${item.status==3}">未验证</c:if>
                        <c:if test="${item.status==4}">已验证</c:if>
                        <c:if test="${item.status==5}">交易完成</c:if>
                        <c:if test="${item.status==9}">订单关闭</c:if>
                        <c:if test="${item.status==10}">部分支付</c:if>
                        <c:if test="${item.status==11}">支付失败订单关闭</c:if>
                        <c:if test="${item.status==12}">待发货</c:if>
                        <c:if test="${item.status==13}">已发货</c:if>
                        <c:if test="${item.status==14}">已收货</c:if>
                    </td>
                   <%-- <td title="${item.productIntroduction }">${item.productIntroduction }</td>--%>
                    <td>
                        <a style="text-decoration:none" class="ml-5" onClick="layerTools.layerShowFullScreen('支付详情','/admin/order/getPayMentList.html?orderId=${item.orderId}','')"
                           href="javascript:;" title="查看支付详情"><i class="Hui-iconfont">&#xe720;</i></a>
                        <a style="text-decoration:none" class="ml-5" onClick="layerTools.layerShowFullScreen('订单详情','/admin/order/getOrderItemList.html?orderId=${item.orderId}','')"
                           href="javascript:;" title="查看订单详情"><i class="Hui-iconfont">&#xe725;</i></a>
                        <c:if test="${item.status==6}">
                            <a style="text-decoration:none" class="ml-5" onClick="updateStatus('${item.orderId}')" href="javascript:;" title="确认退款"><i class="Hui-iconfont">&#xe6a8;</i></a>
                        </c:if>
                        <c:if test="${item.status==2}">
                            <a style="text-decoration:none" class="ml-5" onClick="layerTools.layerShowFullScreen('添加物流','/admin/order/logistics.html?orderId=${item.orderId}','')"
                               href="javascript:void(0);" title="添加物流"><i class="Hui-iconfont">&#xe600;</i></a>
                        </c:if>

                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
        <div class="ui-page tr mt10" style="float: right;margin-top: 10px;margin-bottom: 10px"></div>
    </div>
</div>
<%--<script type="text/javascript" src="/static/js/product/getProductEntityList.js"></script>--%>
<%@ include file="/common/include-footer.jsp" %>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script>
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript" src="/static/js/message/getMessage.js"></script>
<script type="text/javascript" src="/static/js/admin/order/getOrderList.js"></script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>